
package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * <P>芝麻配置文件Bean</P>
 *
 * @author tianhuaxing 2017年5月22日 下午8:01:04
 * @since 1.0.0.000
 */
@Component
@DisconfFile(targetDirPath = "disconf", filename = "zhima.properties")
public class ZhimaProperties {

    //芝麻开放平台地址
    private String gatewayUrl;
    //商户应用 Id
    private String appId;

    //商户 RSA 私钥
    protected String privateKey;
    //字符集
    private String charset;
    //芝麻RSA公钥
    private String zhimaPublicKey;
    //身份类型
    private String identityType;
    //certType
    private String certType;

    //数据反馈
    private String typeId;

    private String fileType;

    private String columns;

    private String primaryKeyColumns;

    private String fileBaseDir;

    //芝麻开放平台地址
    private String gatewayUrl2;
    //商户应用 Id
    private String appId2;
    //商户 RSA 私钥
    private String privateKey2;
    //芝麻RSA公钥
    private String zhimaPublicKey2;

    private String productCode;

    @DisconfFileItem(name = "zhima.gatewayUrl", associateField = "gatewayUrl")
    public String getGatewayUrl() {
        return gatewayUrl;
    }

    public void setGatewayUrl(String gatewayUrl) {
        this.gatewayUrl = gatewayUrl;
    }

    @DisconfFileItem(name = "zhima.appId", associateField = "appId")
    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    @DisconfFileItem(name = "zhima.privateKey", associateField = "privateKey")
    public String getPrivateKey() {
        return privateKey;
    }

    public void setPrivateKey(String privateKey) {
        this.privateKey = privateKey;
    }

    @DisconfFileItem(name = "zhima.charset", associateField = "charset")
    public String getCharset() {
        return charset;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }

    @DisconfFileItem(name = "zhima.zhimaPublicKey", associateField = "zhimaPublicKey")
    public String getZhimaPublicKey() {
        return zhimaPublicKey;
    }

    public void setZhimaPublicKey(String zhimaPublicKey) {
        this.zhimaPublicKey = zhimaPublicKey;
    }

    @DisconfFileItem(name = "zhima.identityType", associateField = "identityType")
    public String getIdentityType() {
        return identityType;
    }

    public void setIdentityType(String identityType) {
        this.identityType = identityType;
    }

    @DisconfFileItem(name = "zhima.certType", associateField = "certType")
    public String getCertType() {
        return certType;
    }

    public void setCertType(String certType) {
        this.certType = certType;
    }

    @DisconfFileItem(name = "zhima.typeId", associateField = "typeId")
    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    @DisconfFileItem(name = "zhima.fileType", associateField = "fileType")
    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    @DisconfFileItem(name = "zhima.columns", associateField = "columns")
    public String getColumns() {
        return columns;
    }

    public void setColumns(String columns) {
        this.columns = columns;
    }

    @DisconfFileItem(name = "zhima.primaryKeyColumns", associateField = "primaryKeyColumns")
    public String getPrimaryKeyColumns() {
        return primaryKeyColumns;
    }

    public void setPrimaryKeyColumns(String primaryKeyColumns) {
        this.primaryKeyColumns = primaryKeyColumns;
    }

    @DisconfFileItem(name = "zhima.fileBaseDir", associateField = "fileBaseDir")
    public String getFileBaseDir() {
        return fileBaseDir;
    }

    public void setFileBaseDir(String fileBaseDir) {
        this.fileBaseDir = fileBaseDir;
    }

    @DisconfFileItem(name = "zhima.gatewayUrl2", associateField = "gatewayUrl2")
    public String getGatewayUrl2() {
        return gatewayUrl2;
    }

    public void setGatewayUrl2(String gatewayUrl2) {
        this.gatewayUrl2 = gatewayUrl2;
    }

    @DisconfFileItem(name = "zhima.appId2", associateField = "appId2")
    public String getAppId2() {
        return appId2;
    }

    public void setAppId2(String appId2) {
        this.appId2 = appId2;
    }

    @DisconfFileItem(name = "zhima.privateKey2", associateField = "privateKey2")
    public String getPrivateKey2() {
        return privateKey2;
    }

    public void setPrivateKey2(String privateKey2) {
        this.privateKey2 = privateKey2;
    }

    @DisconfFileItem(name = "zhima.zhimaPublicKey2", associateField = "zhimaPublicKey2")
    public String getZhimaPublicKey2() {
        return zhimaPublicKey2;
    }

    public void setZhimaPublicKey2(String zhimaPublicKey2) {
        this.zhimaPublicKey2 = zhimaPublicKey2;
    }

    @DisconfFileItem(name = "zhima.productCode", associateField = "productCode")
    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }
}
